<%@page contentType="text/html" pageEncoding="UTF-8"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
Welcome to Q&Q's Website
</title>
<LINK href="style.css" rel=stylesheet>
<META http-equiv=Content-Type
content="text/html; charset=UTF-8">
<style type="text/css">
body,td,th {
	font-family: "Times New Roman", Times, serif;
}
a {
	font-family: "Times New Roman", Times, serif;
}
</style>
</head>
<body bottomMargin=0 leftMargin=0
topMargin=0 rightMargin=0>

	<TABLE width="1024" height="768" border=0 cellSpacing=0 cellPadding=0 align=center bgcolor ="white">
  <tr>
      <td colspan="5"><div align="center"><a href ="index.jsp"> <img src ="image/laptops_banner.jpg" width ="1024px" height="150" ></a></div></td>
  </tr>
  <tr>
    <td colspan="5"><%@include file="menu_ngang.jsp" %></td>
  </tr>
	
	<TR HEIGHT=100%>
	<TD vAlign="top" width="150">
	<%@include file="menu_doc.jsp"%>
	</TD>
	
	<!---Khai báo khoảng phân cách--->
	<TD bgcolor=white width="2"></TD>
	<TD vAlign=top width="720" bgcolor=white>

<%!
	boolean notExist(int a[], int b) {
		for (int i = 0; i < a.length; i++) {
			if (a[i] == b) return false;
		}
		return true;
	}
%>
<%
	String cart[] = (String[])session.getValue("cart");
	if (cart == null) response.sendRedirect("cart.jsp");
%>

<form name=form action=sqlcheckout.jsp method=POST>
	<table width=720 height=100% border=0>
		<tr><td align=center colspan=2>Thông tin khách hàng</td></tr>
		<tr><td width=50% align=right><font color=red>*</font>Email: </td>
		<td width=50% align=left><input name=email type="text"></td></tr>
		<tr><td width=50% align=right><font color=red>*</font>Họ và tên: </td>
		<td width=50% align=left><input name=name type="text"></td></tr>
		<tr><td width=50% align=right>Giới tính: </td>
		<td width=50% align=left><select name="sex">
					<option value=1>Nam</option>
					<option value=0>Nữ</option>
				</select>
		</td></tr>
		<tr><td width=50% align=right><font color=red>*</font>Địa chỉ: </td>
		<td width=50% align=left><input name=add type="text"></td></tr>
		<tr><td width=50% align=right>Điện thoại: </td>
		<td width=50% align=left><input name=tel type="text"></td></tr>
		<tr><td width=50% align=right><font color=red>*</font>Di động: </td>
		<td width=50% align=left><input name=mobile type="text"></td></tr>
		<tr><td width=50%></td><td width=50% align=right><input type="submit" value="Xong"></td></tr>	
	</table>
</form>
	<%
		String fail = request.getParameter("fail");
		if (fail != null && fail.equals("true")) {
			out.println("<p align=center><font color=red>Bạn phải nhập đủ các thông tin được đánh dấu *</font></p>");
		}
	%>
	</TD>
	
	<!---Khai báo khoảng phân cách--->
	<TD bgcolor=white width="2"></TD>
	<TD vAlign=top width="150">
	<%@include file="Right.jsp"%>
	</TD>
	</TR>
	
	<!---Khai báo khoảng phân cách--->
	<TR HEIGHT="2">
	<TD colspan=5 bgcolor=white></TD>
	</TR>
	
	<TR HEIGHT="50">
	<TD colspan=5 align=center>
	<%@include file="bottom.jsp"%>
	</TD>
	</TR>
	</TABLE>
</body>
</html>